package com.briup.corejava.day08.pojo;

public class Manager extends Employee{
    private double bonus; // 奖金
    public Manager(){}

    public Manager(String id, String name, double bonus) {
        super(id, name);
        this.bonus = bonus;
    }

    @Override // 注解
    public void doWork() {
        // 完全覆盖父类曾经的写法
        System.out.println("经理的工作内容为发奖金。。。");
    }
}
